package com.book.oauth.server.user.vo;

import java.util.Date;
import java.math.BigDecimal;
import java.io.Serializable;
import com.book.common.util.DatetimeUtil;
import lombok.Data;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * Description：用户 Entity
 * @Author： leo
 * @CreateDate： 2020-12-31
 * @Email： leo.xiong@suyun360.com
 * Version: 1.0
 */
@Data
@ExcelTarget("userVo")
@ApiModel(value = "UserVo", discriminator = "用户Vo", subTypes = {UserVo.class})
public class UserVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="主键ID")
    private Long id;

    @ApiModelProperty(value = "用户名")
    @Excel(name = "用户名", width = 30, isImportField = "true_st")
    private String username;

    @ApiModelProperty(value = "密码")
    @Excel(name = "密码", width = 30, isImportField = "true_st")
    private String password;

    @ApiModelProperty(value = "公司ID")
    @Excel(name = "公司ID", width = 30, isImportField = "true_st")
    private Long companyId;

    @ApiModelProperty(value = "部门ID")
    @Excel(name = "部门ID", width = 30, isImportField = "true_st")
    private Long deptId;

    @ApiModelProperty(value = "当前角色ID")
    @Excel(name = "当前角色ID", width = 30, isImportField = "true_st")
    private Long roleId;

    @ApiModelProperty(value = "邮箱")
    @Excel(name = "邮箱", width = 30, isImportField = "true_st")
    private String email;

    @ApiModelProperty(value = "联系电话")
    @Excel(name = "联系电话", width = 30, isImportField = "true_st")
    private String mobile;

    @ApiModelProperty(value = "最近访问时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    @Excel(name = "最近访问时间", databaseFormat = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C, format = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C, isImportField = "true_st", width = 20)
    private Date lastLoginTime;

    @ApiModelProperty(value = "性别 0男 1女 2保密")
    @Excel(name = "性别 0男 1女 2保密", width = 30, isImportField = "true_st")
    private String sex;

    @ApiModelProperty(value = "是否开启tab，0关闭 1开启")
    @Excel(name = "是否开启tab，0关闭 1开启", width = 30, isImportField = "true_st")
    private String isTab;

    @ApiModelProperty(value = "主题")
    @Excel(name = "主题", width = 30, isImportField = "true_st")
    private String theme;

    @ApiModelProperty(value = "头像")
    @Excel(name = "头像", width = 30, isImportField = "true_st")
    private String avatar;

    @ApiModelProperty(value = "描述")
    @Excel(name = "描述", width = 30, isImportField = "true_st")
    private String description;

    @ApiModelProperty(value = "当前使用的语言")
    @Excel(name = "当前使用的语言", width = 30, isImportField = "true_st")
    private String language;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建人名称")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    private Date createDate;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新人名称")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DatetimeUtil.YYYY_MM_DD_HH_MM_SS_L_C,timezone=DatetimeUtil.CHINA_TIME_ZONE)
    private Date updateDate;

}
